//
//  BIDRentListSectionHeaderView.m
//  HJGJCommunity
//
//  Created by mal on 2017/6/14.
//  Copyright © 2017年 mal. All rights reserved.
//

#import "BIDRentListSectionHeaderView.h"

@implementation BIDRentListSectionHeaderView
@synthesize widthForHouseTypeConstraint;
@synthesize delegate;

- (void)awakeFromNib
{
    [super awakeFromNib];
    UITapGestureRecognizer *tapGR1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(priceViewTapGestureHandler:)];
    [_priceView addGestureRecognizer:tapGR1];
    //
    UITapGestureRecognizer *tapGR2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(houseTypeViewTapGestureHandler:)];
    [_houseTypeView addGestureRecognizer:tapGR2];
    //
    UITapGestureRecognizer *tapGR3 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(rentTypeViewTapGestureHandler:)];
    [_rentTypeView addGestureRecognizer:tapGR3];
}

- (void)priceViewTapGestureHandler:(UITapGestureRecognizer *)tapGR
{
    [delegate showMenuWithType:0];
}

- (void)houseTypeViewTapGestureHandler:(UITapGestureRecognizer *)tapGR
{
    [delegate showMenuWithType:1];
}

- (void)rentTypeViewTapGestureHandler:(UITapGestureRecognizer *)tapGR
{
    [delegate showMenuWithType:2];
}

@end
